package com.edu.service.blog.impl;

import com.edu.entity.blog.blogComment;
import com.edu.mapper.blog.BlogCommentMapper;
import com.edu.service.blog.BlogCommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: LuckyBear
 * @date: 2018-11-08 10:32
 * @description:
 */
@Service
public class BlogCommentServiceImpl implements BlogCommentService {

    @Autowired
    private BlogCommentMapper blogCommentMapper;

    @Override
    public Integer addComment(blogComment blogComment) {
        return blogCommentMapper.addComment(blogComment) ;
    }

    @Override
    public List<blogComment> displayComment(int id) {
        return blogCommentMapper.displayComment(id);
    }
}
